<?php

use Webman\Route;

Route::group('/admin',function (){
    include base_path().'/route/admin.php';
});

Route::group('/index',function (){
    include base_path().'/route/home.php';
});
Route::group('/api',function (){
    Route::any('/get_access_token', [\app\api\controller\BuildToken::class,'getAccessToken']);
    include base_path().'/route/api.php';
});

/**
 * 接口文档
 */
Route::group('/wiki', function() {
    include base_path().'/route/wiki.php';
});
Route::disableDefaultRoute();
